import {createApp} from 'vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import {createPinia} from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persistedstate';

import 'normalize.css/normalize.css'
import './style/index.scss'
import './style/element_visiable.scss'
import 'element-plus/dist/index.css'
import run from '@/core/start.js'

import router from './router'
import '@/permission.js'

import App from './App.vue'

const app = createApp(App)
const pinia = createPinia();


app.use(run)
    .use(pinia.use(piniaPluginPersist))
    .use(router)
    .use(ElementPlus, {locale: zhCn})

app.mount('#app')
